package com.socket.service;

import com.socket.dao.GpsBatchDao;
import com.socket.entity.GpsRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by kaddddd on 2017/7/5 0005.
 */
public class GpsBatchService {
    @Autowired
    private GpsBatchDao gpsBatchDao;
    @Transactional
    public void batchInsertGpsRecord(List<GpsRecord> gpsRecordList){
        gpsBatchDao.saveBatch(gpsRecordList);
    }

}
